.class public Les/xl;
.super Ljava/lang/Object;
.source "FinderPopupView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnKeyListener;
.implements Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter$a;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/PopupWindow;

.field private c:Landroid/view/View;

.field private d:Landroidx/recyclerview/widget/RecyclerView;

.field private e:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

.field private f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/xl;->a:Landroid/content/Context;

    .line 3
    invoke-direct {p0}, Les/xl;->d()V

    .line 4
    invoke-direct {p0}, Les/xl;->c()V

    return-void
.end method

.method private c()V
    .locals 2

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    iget-object v1, p0, Les/xl;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;

    iget-object v1, p0, Les/xl;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Les/xl;->e:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    .line 3
    iget-object v1, p0, Les/xl;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 4
    iget-object v0, p0, Les/xl;->d:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 5
    iget-object v0, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 6
    iget-object v0, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {v0, p0}, Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;->a(Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter$a;)V

    return-void
.end method

.method private d()V
    .locals 4

    .line 1
    iget-object v0, p0, Les/xl;->a:Landroid/content/Context;

    const/4 v1, 0x0

    const v2, 0x7f0c0182

    invoke-static {v0, v2, v1}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Les/xl;->c:Landroid/view/View;

    const v2, 0x7f09046c

    .line 2
    invoke-static {v0, v2}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Les/xl;->d:Landroidx/recyclerview/widget/RecyclerView;

    .line 3
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    const v2, 0x7f09045f

    invoke-static {v0, v2}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Les/xl;->g:Landroid/widget/TextView;

    .line 4
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    const v2, 0x7f090462

    invoke-static {v0, v2}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Les/xl;->h:Landroid/widget/TextView;

    .line 5
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    const v2, 0x7f090461

    invoke-static {v0, v2}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Les/xl;->i:Landroid/widget/TextView;

    .line 6
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    const v2, 0x7f09046a

    invoke-static {v0, v2}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;

    iput-object v0, p0, Les/xl;->j:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;

    .line 7
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/view/View;->setFocusable(Z)V

    .line 8
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setFocusableInTouchMode(Z)V

    .line 9
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    .line 10
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 11
    iget-object v0, p0, Les/xl;->g:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget-object v0, p0, Les/xl;->h:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    iget-object v0, p0, Les/xl;->i:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    iget-object v0, p0, Les/xl;->j:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 15
    new-instance v0, Landroid/widget/PopupWindow;

    iget-object v3, p0, Les/xl;->a:Landroid/content/Context;

    invoke-direct {v0, v3}, Landroid/widget/PopupWindow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    const/4 v3, -0x1

    .line 16
    invoke-virtual {v0, v3}, Landroid/widget/PopupWindow;->setWidth(I)V

    .line 17
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v3}, Landroid/widget/PopupWindow;->setHeight(I)V

    .line 18
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 19
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    iget-object v1, p0, Les/xl;->c:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setContentView(Landroid/view/View;)V

    .line 20
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v2}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    .line 21
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v2}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    .line 22
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v2}, Landroid/widget/PopupWindow;->setTouchable(Z)V

    return-void
.end method

.method private e()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/xl;->a:Landroid/content/Context;

    instance-of v1, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v1, :cond_0

    .line 2
    check-cast v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const-string v1, "finder://"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->j(Ljava/lang/String;)Lcom/estrongs/android/view/FileGridViewWrapper;

    :cond_0
    return-void
.end method

.method private f()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/xl;->g:Landroid/widget/TextView;

    iget-object v1, p0, Les/xl;->a:Landroid/content/Context;

    const v2, 0x7f110299

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 2
    iget-object v0, p0, Les/xl;->h:Landroid/widget/TextView;

    iget-object v1, p0, Les/xl;->a:Landroid/content/Context;

    const v2, 0x7f11029f

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 3
    iget-object v0, p0, Les/xl;->i:Landroid/widget/TextView;

    iget-object v1, p0, Les/xl;->a:Landroid/content/Context;

    const v2, 0x7f11029e

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 9
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    .line 10
    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    :cond_0
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 2

    .line 3
    iget-object v0, p0, Les/xl;->a:Landroid/content/Context;

    if-eqz v0, :cond_2

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    if-nez v0, :cond_1

    return-void

    .line 5
    :cond_1
    invoke-direct {p0}, Les/xl;->f()V

    .line 6
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1, v1, v1}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    :cond_2
    :goto_0
    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/finder/data/FinderGroupData;I)V
    .locals 1

    .line 11
    iget-object v0, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {v0, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V

    .line 12
    iget-object p1, p1, Lcom/estrongs/android/pop/app/finder/data/FinderGroupData;->e:Lcom/estrongs/android/pop/app/finder/data/FinderGroupData$GroupType;

    sget-object p2, Lcom/estrongs/android/pop/app/finder/data/FinderGroupData$GroupType;->Additional:Lcom/estrongs/android/pop/app/finder/data/FinderGroupData$GroupType;

    if-ne p1, p2, :cond_0

    .line 13
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->h()V

    .line 14
    iget-object p1, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;->a()V

    :cond_0
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/finder/data/FinderGroupData;",
            ">;)V"
        }
    .end annotation

    .line 7
    iget-object v0, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;->a(Ljava/util/List;)V

    .line 8
    iget-object p1, p0, Les/xl;->f:Lcom/estrongs/android/pop/app/finder/adapter/FinderAdapter;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method public a(Z)V
    .locals 1

    if-eqz p1, :cond_0

    .line 1
    iget-object p1, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    const v0, 0x7f1202c5

    invoke-virtual {p1, v0}, Landroid/widget/PopupWindow;->setAnimationStyle(I)V

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    const/4 v0, -0x1

    invoke-virtual {p1, v0}, Landroid/widget/PopupWindow;->setAnimationStyle(I)V

    :goto_0
    return-void
.end method

.method public b()Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Les/xl;->g:Landroid/widget/TextView;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->c()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Les/xl;->h:Landroid/widget/TextView;

    if-ne p1, v0, :cond_1

    .line 4
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->g()V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Les/xl;->i:Landroid/widget/TextView;

    if-ne p1, v0, :cond_2

    .line 6
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->b()V

    .line 7
    iget-object p1, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {p1}, Landroid/widget/PopupWindow;->dismiss()V

    .line 8
    invoke-direct {p0}, Les/xl;->e()V

    goto :goto_0

    .line 9
    :cond_2
    iget-object v0, p0, Les/xl;->j:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;

    if-ne p1, v0, :cond_3

    .line 10
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->c()V

    goto :goto_0

    .line 11
    :cond_3
    iget-object v0, p0, Les/xl;->c:Landroid/view/View;

    if-ne p1, v0, :cond_4

    .line 12
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->c()V

    :cond_4
    :goto_0
    return-void
.end method

.method public onKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
    .locals 0

    .line 1
    invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x4

    if-ne p2, p1, :cond_0

    .line 2
    invoke-static {}, Les/wl;->i()Les/wl;

    move-result-object p1

    invoke-virtual {p1}, Les/wl;->c()V

    .line 3
    iget-object p1, p0, Les/xl;->b:Landroid/widget/PopupWindow;

    invoke-virtual {p1}, Landroid/widget/PopupWindow;->dismiss()V

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method
